package com.example.saifly.inPageMy;

import android.content.Intent;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.example.common.Activity;
import com.example.saifly.R;

public class AboutActivity extends Activity
{
    @Override
    protected int getContentLayoutId()
    {
        return R.layout.activity_about;
    }

    private RelativeLayout rlUserAgreement;
    private RelativeLayout rlPrivacyPolicy;
    private ImageView ivReturn;

    @Override
    protected void init()
    {
        super.init();

        rlUserAgreement=findViewById(R.id.about_user_agreement);
        rlPrivacyPolicy=findViewById(R.id.about_privacy_policy);
        ivReturn = findViewById(R.id.about_return);

        doJump();

    }

    private void doJump()
    {
        ivReturn.setOnClickListener(view -> finish());
        rlUserAgreement.setOnClickListener(v -> startActivity(new Intent(this, UserAgreementActivity.class)));
        rlPrivacyPolicy.setOnClickListener(v -> startActivity(new Intent(this, PrivacyPolicyActivity.class)));
    }
}
